﻿/*
 * Crée par SharpDevelop.
 * Utilisateur: ngr
 * Date: 11/02/2015
 * Heure: 16:32
 * 
 * Pour changer ce modèle utiliser Outils | Options | Codage | Editer les en-têtes standards.
 */
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace ComptaPerso
{
	/// <summary>
	/// Description of UC_Account.
	/// </summary>
	public partial class UC_Account : UserControl
	{
		string accountName;
		MainForm m;
		public UC_Account(MainForm m, string accountName)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			//this.splitContainer1.SplitterDistance = 153;
			
			//init
			this.m = m;
			this.accountName = accountName;
			
			
		}
		
		void LoadOperations(int number)
		{
			
		}
		
		void LoadAccountParametres()
		{
			
			
		}
		
		void Checkoperation(int id)
		{
			// maj base
			
			// maj ihm
			
		}
		
		
		void AddOperation()
		{
			// affichage ihm de saisie
			
			// récupération de la saisie
			
			// controle de la saisie
			
			// si ok, écriture en base
		}
		
		void DelOperation()
		{
			
		}
		
		/// <summary>
		/// 
		/// </summary>
		void ModOperation()
		{
			
		}
		
		
		void ShowGuiAccountLine(string mode)
		{
			
		}
		
		
		void SplitContainer1SizeChanged(object sender, EventArgs e)
		{
		//	splitContainer1.SplitterDistance = 153;
		}
		
		void BtnCloseAccountClick(object sender, EventArgs e)
		{
			//this.Dispose();
			//m.splitContainer1.Panel2.Controls.Clear();
			m.ClearPanel2Controls();
		}
		

	}
}
